package com.xyoto.community.entity.main;

import com.xyoto.community.entity.Base;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author lin
 * @Date 2021/10/1 22:51
 */
@Data
@ApiModel("消息表")
public class Message extends Base {


    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("模块id")
    private Integer moduleId;

    @ApiModelProperty("目标用户id")
    private Integer targetUserId;

    @ApiModelProperty("类型（1、动态点赞 2、动态评论点赞、3、动态回复点赞、4、动态评论 5、动态回复 6、问答评论点赞 7、问答回复点赞 8、问答评论 9、 问答回复 10、 活动评论 11、活动评论点赞 12、活动回复  13、活动回复点赞 14、用户关注）")
    private Short type;

    @ApiModelProperty("零级父类id")
    private Integer zeroParentId;

    public void setZeroParentId(Integer zeroParentId) {
        this.zeroParentId = zeroParentId == null? 0 : zeroParentId;
    }

    public void setFirstParentId(Integer firstParentId) {
        this.firstParentId = firstParentId == null ? 0 : firstParentId;
    }

    public void setSecondParentId(Integer secondParentId) {
        this.secondParentId = secondParentId == null? 0: secondParentId;
    }

    public void setThirdParentId(Integer thirdParentId) {
        this.thirdParentId = thirdParentId == null? 0 : thirdParentId;
    }

    @ApiModelProperty("一级父类id")
    private Integer firstParentId;

    @ApiModelProperty("二级父类id")
    private Integer secondParentId;

    @ApiModelProperty("三级父类id （动态、 问答、 活动）id")
    private Integer thirdParentId;

    @ApiModelProperty("阅读状态（1-已读 2-未读）")
    private Short readStatus;


}
